import { useState } from "react";

function User() {
    const [username, setUsername] = useState('')
    return (
        <div>
            <div>用户名：{username}</div>
            <input value={username} onInput={(e) => setUsername(e.target.value)}></input>
        </div>
    )
}

export default User;